/*
 * Copyright (c) 2008-2009, Petr Panteleyev
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 * 
 *    1. Redistributions of source code must retain the above copyright notice, 
 *       this list of conditions and the following disclaimer.
 *    2. Redistributions in binary form must reproduce the above copyright notice, 
 *       this list of conditions and the following disclaimer in the documentation 
 *       and/or other materials provided with the distribution.
 *    3. The name of the author may not be used to endorse or promote products 
 *       derived from this software without specific prior written permission.
 *  
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 
 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package org.panteleyev.blogclient;

import java.util.ResourceBundle;

import org.panteleyev.utilities.ArrayResourceBundle;

/**
 *
 * @author Petr Panteleyev
 */
enum L10N {
    MAIN_MENU_VIEW(20),

    HOMEPAGE(168),
    
    FONT_FAMILY_DIALOG_TITLE(141),
    
    /* LoginDialog */
    LOGIN_DIALOG_NAME_LABEL(30),
    LOGIN_DIALOG_PASSWORD_LABEL(31),
    LOGIN_DIALOG_REMEMBER_PASSWORD_CHECKBOX(32),
    LOGIN_DIALOG_TITLE(33),
    LOGIN_DIALOG_CREATE_PROFILE_ACTION(147),
    
    /* Misc */
    SUPPORT_FORUM_URL(0),                           // not used
    CONFIRM_DIALOG_TITLE(136),
    CONFIRM_DIALOG_MESSAGE(137),
        
    /* Actions */
    UPLOAD_PHOTO_ACTION(11),
    SHOW_TOOLBAR_ACTION(21),
    CLOSE_MAIN_FRAME_ACTION(22),
    TYPOGRAF_MAIN_FRAME_ACTION(23),
    CHECK_UPDATE_MAIN_FRAME_ACTION(27),
    MAIN_FRAME_COPY_ACTION(43),
    MAIN_FRAME_CUT_ACTION(44),
    MAIN_FRAME_PASTE_ACTION(45),
    MAIN_FRAME_CONNECT_ACTION(46),
    MAIN_FRAME_NEW_POST_ACTION(47),
    MAIN_FRAME_SAVEAS_ACTION(48),
    MAIN_FRAME_SAVE_ACTION(49),
    MAIN_FRAME_OPEN_ACTION(50),
    MAIN_FRAME_EXIT_ACTION(51),
    MAIN_FRAME_INSERT_REFERENCE_ACTION(52),
    MAIN_FRAME_INSERT_IMAGE_ACTION(53),
    MAIN_FRAME_INSERT_ADV_USER_ACTION(54),
    MAIN_FRAME_RUSSIAN_QUOTES_ACTION(55),
    MAIN_FRAME_FRENCH_QUOTES_ACTION(56),
    MAIN_FRAME_ENGLISH_QUOTES_ACTION(57),
    MAIN_FRAME_ENGLISH_SINGLE_QUOTES_ACTION(58),
    MAIN_FRAME_HELLIP_SYMBOL_ACTION(59),
    MAIN_FRAME_INSERT_PICASA_ALBUM_ACTION(60),
    MAIN_FRAME_STRIKE_ACTION(61),
    MAIN_FRAME_BOLD_ACTION(62),
    MAIN_FRAME_ITALIC_ACTION(63),
    MAIN_FRAME_UNDERSCORE_ACTION(64),
    MAIN_FRAME_FONT_COLOR_ACTION(65),
    MAIN_FRAME_TEMPLATES_ACTION(66),
    MAIN_FRAME_OPTIONS_ACTION(67),
    MAIN_FRAME_WINDOW_REFRESH_ACTION(68),
    MAIN_FRAME_WINDOW_CLOSE_ACTION(69),
    MAIN_FRAME_ABOUT_ACTION(70),    
    MAIN_FRAME_LICENSE_ACTION(71),
    MAIN_FRAME_HOMEPAGE_ACTION(72),                 // not used
    MAIN_FRAME_COMMUNITY_ACTION(73),
    MAIN_FRAME_MANUAL_ACTION(74),
    MAIN_FRAME_ADD_TEMPLATE_ACTION(75),
    MAIN_FRAME_MENU_FILE(76),
    MAIN_FRAME_MENU_EDIT(77),
    MAIN_FRAME_SUBMENU_QUOTES(78),
    MAIN_FRAME_SUBMENU_SYMBOLS(79),
    MAIN_FRAME_MENU_FORMAT(80),
    MAIN_FRAME_SUBMENU_FONT(81),
    MAIN_FRAME_SUBMENU_SIZE(82),
    MAIN_FRAME_FONT_FAMILY_ACTION(83),
    MAIN_FRAME_MENU_TOOLS(84),
    MAIN_FRAME_MENU_WINDOW(85),
    MAIN_FRAME_MENU_HELP(86),
    MAIN_FRAME_MENU_TEMPLATES(87),
    MAIN_FRAME_UNDO_ACTION(88),
    MAIN_FRAME_REDO_ACTION(89),
    REPORT_BUG_ACTION(140),                         // not used
    
    /* Update Manager */
    UPDATE_MANAGER_UPDATE_YES(29),
    UPDATE_MANAGER_UPDATE_NO(28),
    
    /* About Dialog */
    ABOUT_DIALOG_SYSTEM_BUTTON(12),
    ABOUT_DIALOG_CREDITS_BUTTON(19),
    ABOUT_DIALOG_CLOSE_BUTTON(18),
    ABOUT_DIALOG_TITLE(105),
    ABOUT_DIALOG_VERSION_LABEL(106),
    
    /* Options Dialog */
    OPTIONS_DIALOG_CREATE_PROFILE_ACTION(13),
    OPTIONS_DIALOG_EDIT_PROFILE_ACTION(14),
    OPTIONS_DIALOG_DELETE_PROFILE_ACTION(15),
    OPTIONS_DIALOG_EXTERNAL_BROWSER_LABEL(16),
    
    /* Preview Dialog */
    PREVIEW_POST_BUTTON(17),
    PREVIEW_CLOSE_BUTTON(90),
    PREVIEW_TITLE(91),
    
    /* LicenseDialog */
    LICENSE_DIALOG_TITLE(92),

    /* User Profile List Frame */
    UPLF_TITLE(169),
    UPLF_TABLE_PROFILE(170),
    UPLF_TABLE_SERVER(171),
    
    /* OptionsDialog */
    OPTIONS_DIALOG_TITLE(93),
    OPTIONS_DIALOG_EXTERNAL_PREVIEW_LABEL(94),
    OPTIONS_DIALOG_RESTART_LABEL(95),
    OPTIONS_DIALOG_LANGUAGE_LABEL(96),
    OPTIONS_DIALOG_ENABLE_PROXY_CHECKBOX(97),
    OPTIONS_DIALOG_PROXY_AUTH_CHECKBOX(98),
    OPTIONS_DIALOG_PROXY_USER_LABEL(99),
    OPTIONS_DIALOG_PROXY_PASSWD_LABEL(100),
    OPTIONS_DIALOG_PROXY_BORDER(101),
    OPTIONS_DIALOG_PROFILES_TAB(102),
    OPTIONS_DIALOG_APPLICATION_TAB(103),
    OPTIONS_DIALOG_NETWORK_TAB(104),
    
    /* Profile Dialog */
    PROFILE_DIALOG_TITLE(146),
    
    /* BloggingKit */
    POST_WINDOW_SUBJECT_LABEL(114),
    POST_WINDOW_PREVIEW_ACTION(115),
    POST_WINDOW_PUBLISH_ACTION(116),
    POST_WINDOW_PUBLISH_AND_CONTINUE_ACTION(134),
    POST_WINDOW_ENTRY_MENU_NAME(135),
    POST_WINDOW_DELETE_ACTION(131),
    POST_WINDOW_DRAFT_CHECKBOX(117),
    POST_WINDOW_MANUAL_DATE_CHECKBOX(118),
    POST_WINDOW_TITLE_NEW_POST(132),
    POST_WINDOW_TITLE_EDIT_POST(133),
    HISTORY_WINDOW_COPY_ENTRY_LINK_ACTION(119),
    HISTORY_WINDOW_OPEN_ENTRY_LINK_ACTION(120),
       
    /* InsertReferenceDialog */
    IRD_TITLE(5),
    IRD_BOLD_CHECK(6),
    IRD_ITALIC_CHECK(7),
    IRD_LINK_TEXT_LABEL(8),
    IRD_LINK_TITLE_LABEL(9),
    IRD_NEW_WINDOW_CHECK(10),
    
    /* ImageReferenceDialog */
    IMRD_TITLE(34),
    IMRD_ALT_TEXT_LABEL(35),
    IMRD_LINK_TITLE_LABEL(36),
    IMRD_LINK_TO_ORIGINAL_CHECKBOX(37),
    IMRD_DETECT_SIZE_BUTTON(38),
    IMRD_WIDTH_LABEL(39),
    IMRD_HEIGHT_LABEL(40),
    IMRD_BORDER_LABEL(41),
    IMRD_ALIGN_LABEL(42),
    
    /* TypografFrame */
    TYPOGRAF_FRAME_TITLE(24),
    TYPOGRAF_FRAME_TYPOGRAF_ACTION(25),
    
    /* Typograf Options Dialog */
    TYPOGRAF_OPTIONS_DIALOG_TITLE(26),
    
    /* NewProfileDialog */
    NEW_PROFILE_DIALOG_TITLE(107),
    NEW_PROFILE_DIALOG_PROFILE_NAME_LABEL(108),
    NEW_PROFILE_DIALOG_USER_NAME_LABEL(109),
    NEW_PROFILE_DIALOG_PASSWORD_LABEL(110),
    NEW_PROFILE_DIALOG_SERVER_LABEL(111),
    NEW_PROFILE_DIALOG_STORE_PASSWORD_CHECKBOX(112),
    NEW_PROFILE_DIALOG_DEFAULT_PROFILE_CHECKBOX(113),
    
    /* TemplateListDialog */
    TEMPLATE_LIST_DIALOG_ADD_ACTION(121),
    TEMPLATE_LIST_DIALOG_EDIT_ACTION(122),
    TEMPLATE_LIST_DIALOG_DELETE_ACTION(123),
    TEMPLATE_LIST_FRAME_TABLE_HEADERS_NAME(124),
    TEMPLATE_LIST_FRANE_TABLE_HEADERS_DESCR(125),
    TEMPLATE_LIST_FRAME_TABLE_HEADERS_HOTKEY(126),
    TEMPLATE_LIST_FRAME_TITLE(127),
    
    /* TemplateDialog */
    SCRIPT_EDITOR_TITLE(128),
    SCRIPT_EDITOR_NAME_LABEL(129),
    SCRIPT_EDITOR_DESCR_LABEL(173),
    SCRIPT_EDITOR_DELIM_LABEL(174),

    /* IPicturePublishDialog */
    IPICT_PUBLISH_BORDER_CHECKBOX(148),
    IPICT_PUBLISH_FULL_SIZE_RADIO(149),
    IPICT_PUBLISH_REDUCED_SIZE_RADIO(150),
    IPICT_PUBLISH_LINK_TO_ORIGINAL_CHECKBOX(151),
    IPICT_PUBLISH_COPY_TO_CLIPBOARD_RADIO(152),
    IPICT_PUBLISH_COPY_TO_WINDOW_RADIO(153),
    IPICT_PUBLISH_COLUMNS_LABEL(154),
    IPICT_PUBLISH_TITLE(155),
    IPICT_PUBLISH_TARGET_BOARD(156),
    IPICT_PUBLISH_LINK_BOARD(157),
    IPICT_PUBLISH_TABLE_BOARD(158),
    IPICT_PUBLISH_ITEM_TITLE_CHECKBOX(159),
    IPICT_PUBLISH_ALBUMS_TAB(160),
    IPICT_PUBLISH_SETTINGS_TAB(161),
    IPICT_PUBLISH_THUMBNAIL_LABEL(162),
    IPICT_PUBLISH_PHOTOS_TAB(175),
    IPICT_PUBLISH_USE_TABLE_LABEL(176),

    /* Outbox Frame */
    OUTBOX_FRAME_DELETE_ACTION(163),
    OUTBOX_FRAME_PUBLISH_ACTION(164),
    OUTBOX_FRAME_EDIT_ACTION(165),
    OUTBOX_FRAME_TABLE_HEADER_DATE(166),
    OUTBOX_FRAME_TABLE_HEADER_SUBJECT(167),
    
    /* History Window */
    HISTORY_WINDOW_TITLE(130),
    HISTORY_WINDOW_TABLE_DATE(138),
    HISTORY_WINDOW_TABLE_SUBJECT(139),
    HISTORY_EXPORT_EVENTS_DIALOG_TITLE(3),
    HISTORY_EDIT_EVENT_ACTION(1),
    HISTORY_DELETE_EVENT_ACTION(2),
    HISTORY_EXPORT_EVENTS_ACTION(4),
    HISTORY_FRAME_AFTER_CHECKBOX(142),
    HISTORY_FRAME_BEFORE_CHECKBOX(143),
    HISTORY_FRANE_VIEW_COMMENTS_ACTION(145),
    HISTORY_FRAME_LAST_LABEL(144),
    
    EDITOR_EDIT_TYPOGRAF(172);

    
    private String l10nValue;
    
    public String s() {
        return l10nValue;
    }

    L10N(int key) {
        l10nValue = ((ArrayResourceBundle)ResourceBundle.getBundle("org.panteleyev.blogclient.L10NStrings")).getString(key);
    }    
}
